<?php
function smarty_function_block($params, &$smarty)
{
	if(isset($params['handler']))
	{
		list($controllerClass,$event) = explode('.',$params['handler']);
		$controller = new $controllerClass(false);
		return $controller->run($event,$params);
	}
	if(isset($params['type']))
	{
		$controller = new Controller_Blocks();
		return $controller->run("block",$params);
	}
}
?>
